﻿@model IEnumerable<ElCharro01.Models.Product>
@{
    ViewBag.Title = "ShowSelectedProducts";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="category-content">
    <div class="category-wrap ">
        <div class="category products">
            <h2 class="cat-name">
                Prodotti: @ViewBag.CategoryName @ViewBag.ClothingTypeName</h2>
            <ul class="ulTabellizzato">
                @foreach (var item in Model)
                {

                    if (item.Variant.ToList().Count != 0)
                    {
                    <li class="product-wrap">
                        <div class="product">
                            <div class="image-wrap">
                                <a href="@Url.Action("Details", "Variant", new { id = item.Variant.First().ID })">
                                    <img height="200" width="180" alt="@item.Nome" src="/Content/Images/Raw/@item.Variant.First().Image.First().Path"  />
                                </a>
                            </div>
                            <span class="name">@item.Nome</span>
                            <div class="price">
                                <span class="offer-price">€@item.Variant.First().PrezzoUnitario</span>
                            </div>
                        </div>
                    </li>
                    }
                }
            </ul>
        </div>
    </div>
</div>
